package com.example.administrator.android2019;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.administrator.android2019.ch2Activity.activity_all2Activity;

public class allActivity extends AppCompatActivity {
    private Button btn_ui, btn_act,btn_num,btn_person,btn_radio,btn_ser;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_all);

        init();
        View.OnClickListener click=new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                switch (v.getId()){
                    case  R.id.btn_ui:
                        break;
                    case R.id.btn_act:
                        Intent intent=new Intent(allActivity.this,activity_all2Activity.class);
                        startActivity(intent);
                        break;
                    case  R.id.btn_num:
                        break;
                }
            }
        };
        btn_ui.setOnClickListener(click);
        btn_act.setOnClickListener(click);
        btn_num.setOnClickListener(click);
        btn_person.setOnClickListener(click);
        btn_radio.setOnClickListener(click);
        btn_ser.setOnClickListener(click);

    }
    public void init(){
        btn_ui=findViewById(R.id.btn_ui);
        btn_act=findViewById(R.id.btn_act);
        btn_num=findViewById(R.id.btn_num);
        btn_person=findViewById(R.id.btn_person);
        btn_radio=findViewById(R.id.btn_radio);
        btn_ser=findViewById(R.id.btn_ser);

    }
}
